package com.qding.park.manager.web.conf;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;

@Service
@Scope("singleton")
@DisconfFile(filename = "SSO.properties")
public class SSOConfig {

    private String cookieName = "session_cookie_token";

    private String SSOServiceURL = "http://www.wuzhelu.com:8087/smart-web-boss/SSO";

    private int sessionTimeout = 3600;

    private String sessionRedisHost = "120.24.181.119";
    
    private int sessionRedisPort = 6368;

    @DisconfFileItem(name = "cookieName", associateField = "cookieName")
    public String getCookieName() {
        return cookieName;
    }

    public void setCookieName(String cookieName) {
        this.cookieName = cookieName;
    }

    @DisconfFileItem(name = "SSOServiceURL", associateField = "SSOServiceURL")
    public String getSSOServiceURL() {
        return SSOServiceURL;
    }

    public void setSSOServiceURL(String sSOServiceURL) {
        SSOServiceURL = sSOServiceURL;
    }

    @DisconfFileItem(name = "session.timeout", associateField = "sessionTimeout")
    public int getSessionTimeout() {
        return sessionTimeout;
    }

    
    public void setSessionTimeout(int sessionTimeout) {
        this.sessionTimeout = sessionTimeout;
    }

    @DisconfFileItem(name = "session.redis.host", associateField = "sessionRedisHost")
    public String getSessionRedisHost() {
        return sessionRedisHost;
    }

    
    public void setSessionRedisHost(String sessionRedisHost) {
        this.sessionRedisHost = sessionRedisHost;
    }

    
    @DisconfFileItem(name = "session.redis.port", associateField = "sessionRedisPort")
    public int getSessionRedisPort() {
        return sessionRedisPort;
    }

    
    public void setSessionRedisPort(int sessionRedisPort) {
        this.sessionRedisPort = sessionRedisPort;
    }
    
    

}
